package com.xcity.pomelo.push.msg;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

import com.xcity.db.entity.Player;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;
import com.xcity.pomelo.push.SyncPush;

/**
 * @see SyncPush.SYNC_LEVEL
 * @author yang.li
 *
 */
@Deprecated
@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class LevelUpPush extends AbstractMessagePush {

	private int lv;
	private long exp;
	private int nextExp;
	private int curOpenBuild;
	private int nextOpenBuildNeedLv;
	private int nextOpenBuild;
	
	public LevelUpPush(Player player) {
		super(MSG_LEVEL_UP);
		this.lv = player.getLevel();
		this.exp = player.getExp();
//		this.nextExp = player.getNextLvlNeedExp();
		this.curOpenBuild = player.getMaxBuildNum();
		this.nextOpenBuildNeedLv = player.getNextMaxBuildNumNeedLvl();
		this.nextOpenBuild = player.getMaxBuildNumOfNextGrade();
	}

	public int getLv() {
		return lv;
	}

	public void setLv(int lv) {
		this.lv = lv;
	}

	public long getExp() {
		return exp;
	}

	public void setExp(long exp) {
		this.exp = exp;
	}

	public int getNextExp() {
		return nextExp;
	}

	public void setNextExp(int nextExp) {
		this.nextExp = nextExp;
	}

	public int getCurOpenBuild() {
		return curOpenBuild;
	}

	public void setCurOpenBuild(int curOpenBuild) {
		this.curOpenBuild = curOpenBuild;
	}

	public int getNextOpenBuildNeedLv() {
		return nextOpenBuildNeedLv;
	}

	public void setNextOpenBuildNeedLv(int nextOpenBuildNeedLv) {
		this.nextOpenBuildNeedLv = nextOpenBuildNeedLv;
	}

	public int getNextOpenBuild() {
		return nextOpenBuild;
	}

	public void setNextOpenBuild(int nextOpenBuild) {
		this.nextOpenBuild = nextOpenBuild;
	}

}
